import java.time.chrono.IsoChronology;
import java.util.Stack;

public class Test {
    public static void main(String[] args) {
        MyStack myStack = new MyStack();
        myStack.push(1);
        myStack.push(2);
        int coutn1 = myStack.top();
        System.out.println(coutn1);
        int count2 = myStack.pop();
        System.out.println(count2);
        boolean count3 = myStack.empty();
        System.out.println(count3);
    }
    public static void main1(String[] args) {
        String[] s = {"4","13","5","/","+"};
        MyStack myStack = new MyStack();
        int count = myStack.evalRPN(s);
        System.out.println(count);
    }
    public static void main2(String[] args) {
        int[] pushV = {1,2,3,4,5};
        int[] popV = {2,4,3,5,1};
        MyStack myStack = new MyStack();
        Boolean flg = myStack.IsPopOrder(pushV,popV);
        System.out.println(flg);
    }
}
